from flask import Flask, request

app = Flask(__name__)


@app.route('/', methods=['GET', 'POST'])
def hello_world():
    return 'Hello World!'


@app.route('/camera01', methods=['GET', 'POST'])
def c1():
    print('c1 used')
    print(request.data)
    print('-' * 20)
    return 'c1'


@app.route('/camera02', methods=['GET', 'POST'])
def c2():
    print('c2 used')
    # print(request.data)
    print('-' * 20)
    return 'c2'


@app.route('/camera03', methods=['GET', 'POST'])
def c3():
    print('c3 used')
    # print(request.data)

    print('-' * 20)
    return 'c3'


@app.route('/camera04', methods=['GET', 'POST'])
def c4():
    print('c4 used')
    # print(request.data)

    print('-' * 20)
    return 'c4'

@app.route('/laser01', methods=['GET', 'POST'])
def l1():
    print('l1 used')
    # print(request.data)

    print('-' * 20)
    return 'l1'


@app.route('/laser02', methods=['GET', 'POST'])
def l2():
    print('l2 used')
    # print(request.data)

    print('-' * 20)
    return 'l2'


@app.route('/laser03', methods=['GET', 'POST'])
def l3():
    print('l3 used')
    # print(request.data)

    print('-' * 20)
    return 'l3'


if __name__ == '__main__':
    print('***********test*******************')
    app.run()
